<%@page language="abap" %>
<%@extension name="htmlb" prefix="htmlb" %>
<head>
<script type='text/JavaScript' src='../../zbw_reporting/scripts/framework_include.js'></script>
<script type='text/JavaScript' src="../../zbw_reporting/scripts/portalproxy.js"></script>

         <script type="text/javascript">
         var url = <%= display_url %>;
         </script>
</head>
<htmlb:content design="design2003" >
  <htmlb:page title="Result " >
    <htmlb:form method       = "post"
                encodingType = "multipart/form-data" >
      <table width="100%">
      <%-- <tr><td colspan=2> <h3> Please upload File on SERVER</h3> </br>
           </td></tr> --%>
      <tr>
      <%-- <td>
           <htmlb:label for   = "myFileUpload1"
           id    = "file"
           text  = "Upload your File"
           width = "22%" />
           </td> --%>
      <td>
      <%
  data : result(30).
  IF display_url is initial.
  result = 'Not Uploaded'.
  Else.
  result = 'Uploaded'.
  ENDIF.
      %>
      <%= result. %><br /><p><h3>GUID: <%= guid %></h3></p><p style="color:red">(save this GUID to use the image later).</p>
      <script type="text/javascript">
      var url = <%= display_url %>;
      </script>
      <%-- <htmlb:fileUpload id   = "myFileUpload1"
           size = "50" /> --%>
      <%-- </td>
           <td> --%>
      <htmlb:button id       = "Re-upload"
                    text     = "Upload another image"
                    disabled = "false"
                    onClick  = "upload()" />
            </td>
            </tr>
            <tr>
            <td>
            <!--<img src=<%= show_url%> >-->
            </td>
      </tr>
      <%-- </br><tr><td>
           <htmlb:label for = "table_name"
           text = "Table Name/Photo Name"
           width = "22%" />
           </td><td>
           <htmlb:inputField   id = "lv_table"
           /> --%>
          <tr></tr>
      </table>
    </htmlb:form>
  </htmlb:page>
</htmlb:content>